import request from '@/utils/request'

// 获取 - 权限点列表
export function getPermissionList() {
  return request.get('/sys/permission')
}

// 新增-权限点
export function addPermission(data) {
  return request.post('/sys/permission', data)
}

// 修改-权限点详情
export function updatePermission(data) {
  return request.put(`/sys/permission/${data.id}`, data)
}

// 删除-权限点
export function delPermission(id) {
  return request.delete(`/sys/permission/${id}`)
}

// 获取-权限点详情
export function getPermissionDetail(id) {
  return request.get(`/sys/permission/${id}`)
}
